package com.cal.calonecal.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 76004
 * @apiNote
 * @date 2023/6/17 10:59
 */
@Data
@TableName("answer")
public class Answer {
    @TableId
    private Long id;

    private String userAns;

    private String correctAnswer;

    private Long paperId;

    private Long userId;

    @ApiModelProperty("0错误，1正确，2部分正确（多选题）")
    private Integer isCorrect;

    private Long problemId;

    @ApiModelProperty("正确答案，如果是选择题，则直接将正确选项按照字典序排列")
    private String ans;
}
